package com.ff.xyh.feign.client.dictionary;

import com.ff.xyh.common.entity.dictionary.JoinerStatus;
import com.ff.xyh.common.entity.result.ResultMessage;
import com.ff.xyh.common.entity.result.ResultObject;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Auther FF
 * @Date 2023年 05月 25日
 * @Time 01:47
 */

@FeignClient(value = "consumer-dictionary", contextId = "JoinerStatusClient")
@RequestMapping("/dictionary")
public interface JoinerStatusClient {

    @ApiOperation(value = "获取所有参与者状态信息")
    @GetMapping("get-joiner-status-all")
    ResultObject getAllJoinerStatus() ;

    @ApiOperation(value = "根据id获取参与者状态信息")
    @GetMapping("get-joiner-status-id")
    ResultObject getJoinerStatusById(
            @RequestParam(name = "id") Integer id) ;

    @ApiOperation(value = "根据id删除参与者状态信息")
    @GetMapping("delete-joiner-status-id")
    ResultObject deleteJoinerStatusById(
            @RequestParam(name = "id") Integer id) ;

    @ApiOperation(value = "添加参与者状态信息")
    @PostMapping("insert-joiner-status")
    ResultObject insertJoinerStatus (
            @RequestBody JoinerStatus joinerStatus) ;

    @ApiOperation(value = "修改参与者状态信息")
    @PostMapping("update-joiner-status")
    ResultObject updateJoinerStatus(
            @RequestBody JoinerStatus joinerStatus) ;

}
